<?php # Script 8.2 - mysqli_connect.php

// This file contains the database access information.
// This file also established a connection to MySQL
// and selects the database.

// Set the database access information as constants:
define('DB_USER', 'username');
define('DB_PASSWORD', 'password');
define('DB_HOST', 'localhost');
define('DB_NAME', 'sitename');

// Make the connection:
$dbc = @mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) 
or die('Could not connect to MySQL: '.mysqli_connect_error());

//print_r($dbc);

?>